package com.senven.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author YSH
 * @since 2022-09-06
 */
@ApiModel(value = "Address对象", description = "")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户编号")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty("用户姓名")
    private String name;

    @ApiModelProperty("省份")
    private String province;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("地区")
    private String county;

    @ApiModelProperty("详细地址")
    @TableField(value = "addressDetail")
    private String addressDetail;

    @ApiModelProperty("用户手机号")
    private String tel;

    @ApiModelProperty("邮政编码")
    @TableField(value = "postalCode")
    private String postalCode;

    @ApiModelProperty("地区编码")
    @TableField(value = "areaCode")
    private String areaCode;

    @ApiModelProperty("默认地址")
    @TableField(value = "isDefault")
    private Boolean isDefault;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }
    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }
    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }
    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }
    public Boolean getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public String toString() {
        return "Address{" +
            "id=" + id +
            ", userId=" + userId +
            ", name=" + name +
            ", province=" + province +
            ", city=" + city +
            ", county=" + county +
            ", addressDetail=" + addressDetail +
            ", tel=" + tel +
            ", postalCode=" + postalCode +
            ", areaCode=" + areaCode +
            ", isDefault=" + isDefault +
        "}";
    }
}
